package com.zy.dp.singleton.example4;

public class Singleton2
{

	private static Singleton2 instance = new Singleton2();

	public Singleton2()
	{

	}

	public static Singleton2 getInstance()
	{

		return instance;

	}

	public static void main(String[] args)
	{

		for (int i = 0; i < 5; i++)

		{
			System.out.println(Singleton2.getInstance());

		}
	}

}
